//引入vue的包
import Vue from "vue";
//引入App.vue
import App from "./App.vue";
//引入路由
import VueRouter from "vue-router";
//使用路由
Vue.use(VueRouter);
//加载组件
import login from "./component/login.vue";
import reg from "./component/reg.vue";
//引入    mintUI
import mintui from "mint-ui";
import "mint-ui/lib/style.css"
Vue.use(mintui);
//引入mui.css文件
import "../statics/mui/css/mui.css"
//配置路由
var router = new VueRouter({
    routes:[
        {path:"/login",component:login},
        {path:"/reg",component:reg}
    ]
})
//实例化vue
new Vue({
    el:"#app",
    render:c=>c(App),
    router:router
})